package base.loader
{
	import flash.events.Event;
	
	public class LoaderEvent extends Event
	{
		public static const COMPLETE:String = "complete";
		
		/**
		 *现有加载列表中全部加载完成 
		 */		
		public static const COMPLETE_QUEUE:String = "completeQueue";
		/**
		 *加载列表加载总进度 
		 */		
		public static const QUEUE_PROGRESS:String = "QueueProgress";
		public static const LOAD_ERROR:String = "loadError";
		public static const PROGRESS:String = "progress";
		public static const HTTP_STATUS:String = "HttpStatus";
		public static const SHARED_OBJECT_SAVE_ALERT:String = "sharedObjectSaveAlert";
		public static const SHARED_OBJECT_SAVE_SUCCESS:String = "sharedObjectSaveSuccess";
		public static const SHARED_OBJECT_SAVE_FAILED:String = "sharedObjectSaveFailed";
		/**
		 *开启了缓存保存 
		 */		
		public static const SHARED_OBJECT_CACHE_OPEN:String = "sharedObjectCacheOpen";		
		
		public var baseLoader:BaseLoader;
		public var data:*;
		
		public function LoaderEvent(type:String,baseLoader:BaseLoader=null, data:*=null)
		{
			this.baseLoader = baseLoader;
			this.data=data;
			super(type);
		}
	}
}